import { message } from 'antd';

export const models = {
  name: 'schedule',
  model: {
    state: {
      searchText:""
    },
    reducers: {
      setSearchText(state,text){
        return{
          ...state,
          searchText:text
        }
      }
    },
    effects: dispatch => {
      return{
        searchTextChange(text){
          dispatch.schedule.setSearchText(text)
        }
      }
    }
  }
}